function createTeacher() {
	var jc = $
			.confirm({
				title : '新增教师',
				type : 'blue',
				content : '<hr>'
						+ '<table  class="table table-bordered" style="text-align: center;">'
						+ '<tbody>'
						+ '<tr>'
						+ '<td>教师证编号：</td>'
						+ '<td><input id="input_teacher_code" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>姓名：</td>'
						+ '<td><input id="input_teacher_name" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>性别：</td>'
						+ '<td><select class="form-control" style="width: auto;" id="select_teacher_sex"><option value="男">男</option><option value="女">女</option></select></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>年龄：</td>'
						+ '<td><input id="input_teacher_age" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>职称：</td>'
						+ '<td><select class="form-control" style="width: auto;" id="select_teacher_professionalTitle"><option value="无">无</option><option value="中小学二级">中小学二级</option><option value="中小学一级">中小学一级</option><option value="中小学高级">中小学高级</option><option value="助教">助教</option><option value="讲师">讲师</option><option value="副教授">副教授</option><option value="教授">教授</option><option value="其他">其他</option></select></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>级别：</td>'
						+ '<td><select class="form-control" style="width: auto;" id="select_teacher_level"><option value="无">无</option><option value="普通教师">普通教师</option><option value="骨干教师">骨干教师</option><option value="特级教师">特级教师</option></select></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>所教学段：</td>'
						+ '<td><select class="form-control" style="width: auto;" id="select_teacher_section"><option value="幼儿园">幼儿园</option><option value="小学">小学</option><option value="初级中学">初级中学</option><option value="高级中学">高级中学</option><option value="专科类院校">专科类院校</option><option value="大学">大学</option><option value="其他培训类">其他培训类</option></select></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>教学科目：</td>'
						+ '<td><input id="input_teacher_major" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>学校名称：</td>'
						+ '<td><input id="input_teacher_school" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>联系电话：</td>'
						+ '<td><input id="input_teacher_phone" class="form-control" /></td>'
						+ '</tr>'
						+ '<tr>'
						+ '<td>电子邮箱：</td>'
						+ '<td><input id="input_teacher_mail" class="form-control" /></td>'
						+ '</tr>' + '</tbody>' + '</table>',
				onContentReady : function() {
				},
				buttons : {
					'创建' : {
						btnClass : 'btn-blue',
						action : function() {
							var xhr = false;
							xhr = new XMLHttpRequest();
							xhr.onreadystatechange = function() {
								var message;
								if (xhr.readyState == 4) {
									if (xhr.status == 200) {
										if (xhr.responseText == "1") {
											toastr.success("新增教师成功", "操作成功");
											jc.close();
											/*
											 * 刷新列表
											 */
											listTeacher();
										} else {
											toastr.error("", "操作失败");
										}
									} else {
										toastr.error(xhr.status);
									}
								}
							}
							var formData = new FormData();

							if (input_teacher_name.value == "") {
								toastr.error("名称不可为空", "操作失败");
								return false;
							}

							xhr.open("POST", "/jxfgyj/teacher/createTeacher");

							formData.append("teacher.teacher_code",
									input_teacher_code.value);
							formData.append("teacher.teacher_name",
									input_teacher_name.value);
							formData.append("teacher.teacher_sex",
									select_teacher_sex.value);
							formData.append("teacher.teacher_age",
									input_teacher_age.value);
							formData.append(
									"teacher.teacher_professionalTitle",
									select_teacher_professionalTitle.value);
							formData.append("teacher.teacher_level",
									select_teacher_level.value);
							formData.append("teacher.teacher_section",
									select_teacher_section.value);
							formData.append("teacher.teacher_major",
									input_teacher_major.value);
							formData.append("teacher.teacher_school",
									input_teacher_school.value);
							formData.append("teacher.teacher_phone",
									input_teacher_phone.value);
							formData.append("teacher.teacher_mail",
									input_teacher_mail.value);
							xhr.send(formData);

							return false;
						}
					},
					'放弃' : function() {
					}
				}
			});
}